package com.example.day19.ex02;

import java.io.BufferedReader;
import java.util.Scanner;

public class SystemInDemo {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        System.out.println("请输入一个字符串");
        String line = br.readLine();
        System.out.println("您输入的字符串是"+line);
        System.out.println("请输入一个整数");
        int i=Integer.parseInt(br.readLine());
        System.out.println("您输入的整数是"+i);
        Scanner sc=new Scanner(System.in);
    }
}
